package zlx.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value =  "ZLX.SPRINGCLOUD-HYSTRIX-PAYMENT",fallback = OderFallBackHystrixService.class)
@Component
public interface OderHystrixService {
    @GetMapping(value = "/payment/hystrix/ok/{id}")
    public String  paymentHystrix_OK(@PathVariable("id") Integer id);

    @GetMapping(value = "/payment/hystrix/timeout/{id}")
    public String  paymentHystrix_timeout(@PathVariable("id") Integer id);
}
